$("<%= escape_javascript(render partial: %q(decidim/admin/shared/js-callout), locals: { css: %q(success), text: flash.now[:notice] }) %>").appendTo("div[data-callout-wrapper]");

<% proposal_ids.each do |id| %>
  $(".table-list [data-id='<%= id %>']")
    .replaceWith("<%= escape_javascript(render partial: %q(proposal-tr), locals: { proposal: proposal_find(id), view: :index }) %>");
<% end %>

$(".js-check-all").prop('checked', false);
$(".js-check-all-proposal").prop('checked', false);
window.hideBulkActionForms()
window.showOtherActionsButtons();
window.selectedProposalsCountUpdate();
